// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import createApp  from '../src/main.js';
export default context => {
  return new Promise((resolve, reject) => {
    const app  = createApp(context);
    let asyncDataPromiseFns = [];
    resolve(app);
    // Promise.all(asyncDataPromiseFns).then((result) => {
    //   // 当使用 template 时，context.state 将作为 window.__INITIAL_STATE__ 状态，自动嵌入到最终的 HTML 中
    //   // context.state = store.state;
    //   // console.log(context)
    //   resolve(app);
    // }, reject);
  });
}